/*
 * @Author: Simon 1958058172@qq.com
 * @Date: 2025-08-18 14:44:46
 * @LastEditors: Simon 1958058172@qq.com
 * @LastEditTime: 2025-08-18 14:49:41
 * @FilePath: \java.1212\csdn\yichang\li03\Test.java
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
package csdn.yichang.li03;

public class Test {
    public static void main(String[] args) {
        
        test(0);

        
    }

    private static void test(int i) {
        assert i !=0:"i不能为0";//断言功能默认不打开,运行时需要指定开启断言 java -ea
        int c=10/i;
        System.out.println(c);
    }

}
